package com.tools.pojo.user.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class MenuVO {

    @Schema(description = "菜单ID")
    private Long id;

    @Schema(description = "菜单名称")
    private String name;

    @Schema(description = "菜单类型（DIRECTORY/ MENU/ BUTTON）")
    private String type;

    @Schema(description = "菜单图标")
    private String icon;

    @Schema(description = "路由路径")
    private String path;

    @Schema(description = "组件路径")
    private String component;

    @Schema(description = "权限标识")
    private String permission;

    @Schema(description = "父菜单ID")
    private Long parentId;

    @Schema(description = "显示排序")
    private Integer sort;

    @Schema(description = "重定向路径")
    private String redirect;

    @Schema(description = "菜单状态（ENABLED/ DISABLE）")
    private String status;

    @Schema(description = "是否外链（true/false）")
    private String isExternal;

    @Schema(description = "是否缓存（true/false）")
    private String keepAlive;


    @Schema(description = "子菜单集合")
    private List<MenuVO> children;

    @Schema(description = "菜单层级")
    private Integer level;

    @Schema(description = "是否选中")
    private Boolean checked = false;

}
